<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<c:set var="context"
	value="${pageContext.request.servletContext.contextPath}" />

<!-- Template for all sub-pages -->
<div id="portal_main_content" align="left">
	<!-- Don't change this -->
	<div id="site_title">

		<!-- ************** -->
		<!-- Able to change -->
		<h2>Add Class</h2>
	</div>
	<!-- Don't change this -->
	<div id="site_content">
		<div id="btn_control">

			<!-- ************** -->
			<!-- Able to change -->

		</div>
		<div id="main_content">

			<!-- ************** -->
			<!-- Able to change -->
			<form:form action="../addclass/${openCourseId}" modelAttribute="myClass" method="post"
				style="min-width: 240px;">
				<fieldset class="input_table">
					<legend>Add Class for Open Course: ${openCourseId }</legend>
					<div class="input_row">
						<div>Class ID</div>
						<div>
							<form:input path="classId" placeholder="Id"
								cssClass="form-control" />
						</div>
						<div>
							<form:errors path="classId" cssClass="error" />
						</div>
					</div>
					
					<div class="input_row">
						<div>Class Name</div>
						<div>
							<form:input path="className" placeholder="Class Name"
								cssClass="form-control"/>
						</div>
						<div>
							<form:errors path="className" cssClass="error" />
						</div>
					</div>
					
					<div class="input_row">
						<div></div>
						<div>
							<input type="submit" value="Create" class="btn btn-primary" /> <input
								type="reset" value="Cancel" class="btn btn-primary" />
						</div>
						<div></div>
					</div>
				</fieldset>
			</form:form>
		</div>
		<div id="table">
			<!-- ************** -->
			<!-- Able to change -->
		</div>

	</div>
</div>

